-- GENERATED SPELL FOR [Vindicator Haylen] --


function spell0_22462(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22462', 5251, 1)
end

function Sorts_22462(pUnit, Event)
local choix_sorts_22462 = math.random(0, 0)
if choix_sorts_22462 == 0 then
pUnit:RegisterEvent('spell0_22462', 1, 1)
end
end

function mob22462_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22462', math.random(1500, 3000), 1)
end

function mob22462_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22462_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22462_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22462, 1, 'mob22462_Action')
RegisterUnitEvent(22462, 2, 'mob22462_Leave')
RegisterUnitEvent(22462, 3, 'mob22462_Kill')
RegisterUnitEvent(22462, 4, 'mob22462_Die')
